package com.itsxb.constants;


//常量维护
public class Constants {

    //手机号正则表达式
    public static final String CHINA_PHONE_REGEX =  "^((13[0-9])|(14[0,1,4-9])|(15[0-3,5-9])|(16[2,5,6,7])|(17[0-8])|(18[0-9])|(19[0-3,5-9]))\\d{8}$";

    //编码
    public static final String UTF_8 = "UTF-8";
    //审核状态
    public  static class AuditStatus{
        //审核中
        public static final Integer AUDITING = 0;
        //已审核 通过
        public static final Integer AUDITED_SUCCESS = 1;
        //已审核拒绝
        public static final Integer AUDITING_FAIL = 2;
        //已审核撤回
        public static final Integer AUDITING_RECALL = 3;

    }
    //登录模型
    public class Login {

        // 平台账户
        public static final int TYPE_ADMIN = 0;

        // 司机账户
        public static final int TYPE_DRIVER = 1;

        // 客户账户
        public static final int TYPE_CUSTOMER = 2;
    }

    //远程调用
    public class Remote {
        //服务名
        public static final String SERVICE_UAA = "it-fccar-service-uaa";

        public static final String PREFIX_LOGIN_REMOTE = "/login/remote";
    }
    public class Redis{
        //定义了司机上线时，存储在Redis中的key
        public static final String DRIVER_REIDS_SETTING_KEY = "online-%s";
        public static final String DRIVER_REIDS_GEO_KEY = "driver-geo";
        public static final String DRIVER_REIDS_KEY = "driver-%s";

    }
}
